<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:if test="user.loginState.toString() == 'NORMAL'">
    <div id="common-menu">
        <ul>
            <li><s:a cssClass="dock-item" href="home.do"><img src="${pageContext.request.contextPath}/images/home.png"
                                                              alt="Home"><span><s:label
                    value="%{getText('home.label')}"/></span></s:a></li>

            <li><s:a cssClass="dock-item" href="searchModule.do"><img
                    src="${pageContext.request.contextPath}/images/search.png"
                    alt="Search"><span><s:label
                    value="%{getText('search.label')}"/></span></s:a></li>
            <li><s:a cssClass="dock-item" href="reportModule.do"><img
                    src="${pageContext.request.contextPath}/images/print.png"
                    alt="Print"><span><s:label
                    value="%{getText('reports.label')}"/></span></s:a></li>
            <s:if test="#session.userGroup=='ords' ||  #session.userGroup=='plc'
                    ||  #session.userGroup=='alc' ||  #session.userGroup=='lc'
                   ||  #session.userGroup=='lcg' ||  #session.userGroup=='orlp'
                   ||  #session.userGroup=='aplc' ||  #session.userGroup=='dplc'
                   ||  #session.userGroup=='lo'">
                <li><s:a cssClass="dock-item" href="statisticsModule.do"><img
                        src="${pageContext.request.contextPath}/images/stat.png"
                        alt=""><span><s:label
                        value="%{getText('statisticsModule.label')}"/></span></s:a></li>
            </s:if>

            <li><s:a cssClass="dock-item" href="initchangePassword.do"><img
                    src="${pageContext.request.contextPath}/images/profile.png"
                    alt=""><span><s:label
                    value="%{getText('change_password.label')}"/></span></s:a></li>

            <s:if test="#session.userGroup=='lo' ||  #session.userGroup=='orlm' ">
                <li><a cssClass="dock-item"
                       href="${pageContext.request.contextPath}/docs/eSlims-Guide-Land-Officer.docx"><img
                        src="${pageContext.request.contextPath}/images/guide.png"
                        alt="User Guide"><span><s:label
                        value="%{getText('user_guide.label')}"/></span></a></li>
            </s:if>
            <s:elseif test="#session.userGroup=='ords' ">
                <li><a cssClass="dock-item"
                       href="${pageContext.request.contextPath}/docs/eSlims-Guide-Divisional-Secretariat.docx"><img
                        src="${pageContext.request.contextPath}/images/guide.png"
                        alt="User Guide"><span><s:label
                        value="%{getText('user_guide.label')}"/></span></a></li>
            </s:elseif>


            <li><s:a cssClass="dock-item" href="logout.do"><img
                    src="${pageContext.request.contextPath}/images/logout.png"
                    alt="Logout"><span><s:label
                    value="%{getText('logout.label')}"/></span></s:a></li>
        </ul>
    </div>
</s:if>